package cre.jaxrs.service;

import java.util.HashMap;
import java.util.Map;

import cre.jaxrs.domain.Order;

public class OrderProcessImpl implements OrderProcess {

	Map<String, Order> orders = new HashMap<String, Order>();

	public OrderProcessImpl() {
		Order order = new Order();
		order.setId("1");
		order.setName("test");

		orders.put(order.getId(), order);
	}

	@Override
	public cre.jaxrs.domain.Order getOrder(String id) {
		return orders.get(id);
	}
}
